/*
 * @Autor: lh
 * @Date: 2023-09-26 14:26:16
 * @LastEditors: lh
 * @LastEditTime: 2023-10-20 14:42:25
 * @Description:
 */
import { request } from "@/utils/service"

/** 查看当前用户已办和待办数量 */
export function selectProcessMatterCountVo(data: any) {
  return request({
    url: "/processMatter/selectProcessMatterCountVo",
    method: "get",
    data
  })
}

/** 分页查询所有数据  待办已办任务 */
export function selectAll(data: any) {
  return request({
    url: "/processMatter/selectAll",
    method: "post",
    data
  })
}

/** 分页查询所有数据  写url */
export function commonSearch(data: any, url?: string) {
  return request({
    url: url,
    method: "post",
    data
  })
}

/** 查询单条数据 工程复工令 */
export function selectOneReturn(id: any) {
  return request({
    url: `/projectStopOrder/selectOne/${id}`,
    method: "get"
  })
}

/** 修改系统用户信息 */
export function changeUserInfo(data: any) {
  return request({
    url: `/sysUser/changeUserInfo`,
    method: "post",
    data
  })
}

/** 修改系统用户信息 */
export function examineUserExit(data: any) {
  return request({
    url: `/userExitRecord/examineUserExit`,
    method: "post",
    data
  })
}

/** 查看单个用户信息 */
export function searchOneUserInfo(id: any) {
  return request({
    url: `/sysUser/selectOne/${id}`,
    method: "get"
  })
}
